import request from '@/utils/request'

// 获取所有科室列表
export function selectDepartmentAll() {
  return request({
    url: '/system/department/departmentselect',
    method: 'get'
  })
}

// 根据医院id获取科室列表
export function selectDepartmentByHospitalId(hospitalId, biseaseType) {
  return request({
    url: '/system/department/selectDepartmentByHospitalId/'+hospitalId+'/'+biseaseType,
    method: 'get',
  })
}

// 查询科室列表
export function listDepartment(query) {
  return request({
    url: '/system/department/list',
    method: 'get',
    params: query
  })
}

// 获取科室选择框列表
export function departmentselect() {
  return request({
    url: '/system/department/departmentselect',
    method: 'get'
  })
}

// 查询科室详细
export function getDepartment(id) {
  return request({
    url: '/system/department/' + id,
    method: 'get'
  })
}